package com.yinxun.controller;

import com.yinxun.dao.phoenix.UserInfoDao;
import com.yinxun.dto.MedicalRecordDto;
import com.yinxun.dto.QueryDTO;
import com.yinxun.entity.UserInfo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

import org.apache.commons.codec.digest.DigestUtils;
import org.apache.tomcat.util.security.MD5Encoder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import java.security.MessageDigest;
import java.util.List;

/**
 * phoenix测试控制器
 */
@Api(value = "PHR-HBase", tags = "诊疗记录接口")
@RequestMapping("phoenix")
@RestController
public class MedicalHBaseController {

    @Autowired
    UserInfoDao userInfoMapper;
    
    @Resource
    private PageHelper phoenixPageHelper;
    
    @ApiOperation(value = "保存诊疗记录")
    @PostMapping("save")
    public MedicalRecordDto getAll(@RequestBody MedicalRecordDto request){
    	//数据处理
        return null;
    }
    
    @ApiOperation(value = "查询诊疗记录")
    @PostMapping("query")
    public MedicalRecordDto getAll(@RequestBody QueryDTO request){
    	//数据处理
    	return null;
    }

    

}
